package com.managertrade.service.impl;

import com.managertrade.dto.SysUserDTO;
import com.managertrade.dao.mysql.entity.SysRole;
import com.managertrade.dao.mysql.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;


public interface SysUserService {
    Page<SysUserDTO> getUsers(Pageable pageable, String username);
    SysUser findById(Long id);
    void save(SysUserDTO user);
    void deleteById(Long id);

    void updateById(SysUserDTO user);

    void resetPassword(Long id);
    Map<Long, SysRole> getUserRolesMap(List<Long> userIds);
}
